import i18n from '@/locales/index' 
const { t } = i18n.global

export const routeRule = {
  name: [
    { required: true, message: t('hangManage.pleaseInputVerName'), trigger: 'change' }
  ]
}

export const routeHeader = [t('hangManage.stationSequence'), t('hangManage.effectMainStation'), t('hangManage.mergeScale'), t('hangManage.processInfoStationInfo'), t('basicData.staffInfo'), t('common.operate')]
export const viewRouteHeader = [t('hangManage.stationSequence'), t('hangManage.effectMainStation'), t('hangManage.mergeScale'), t('hangManage.processInfoStationInfo'), t('basicData.staffInfo')]
export const processHeader = [t('common.sequenceNo'), t('basicData.section'), t('basicData.processNo'), t('basicData.processNames')]
export const siteHeader = [t('common.sequenceNo'), t('deviceManage.waterLineNo'), t('hangManage.stationNo'), t('deviceManage.role')]
export const stationTypeList = [{ name: t('other.normal'), value: '0' }, { name: t('other.save'), value: '1' }]

export const stationRule = {
  role: [{
    required: true,
    trigger: 'change',
  }],
  receiveHangerBoolean: [{
    required: true,
    trigger: 'change',
  }],
  proportion: [{
    required: true,
    trigger: 'change',
  }],
  type: [{
    required: true,
    trigger: 'change',
  }]
}

 

export const queryStatusOptions = [
  { value: 0, key: t('other.unProduction') },
  { value: 1, key: t('other.inProduct') },
  { value: 2, key: t('sysManage.completed') },
]